/*All measurements will be in rem to suit all screen sizes*/

body {
    background-color: #333333; /*This colour is called Pebble grey*/
    color: whitesmoke;
    display : flex;
    flex-direction: column;
    min-height: 100vh;
    margin : 0;
}

body.game {
    align-items: center;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10rem;
}

nav ul {
    list-style: none;
    padding: 0rem;
    margin: 0rem;
    display: flex;
    gap: 2rem; /*Spacing between links*/
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: whitesmoke;
    font-size: medium;
    display: flex;
    align-items: center;
    transition: color 0.25s ease;
}

nav ul li a:hover {
    color: #f0e9d6; /*Creamy white*/
    text-decoration: underline;
}

nav ul li a i {
    margin-left: 0.5rem;
    font-size: 1.0rem;
}

#DarkLight {
    cursor: pointer;
}

body.light-mode {
    background-color: aliceblue;
    color: black;
}

body.light-mode nav ul li a { /*Overwriting but is currently being stored as the color*/
    color: black;
}

body.light-mode nav ul li a:hover {
    color : #808080;
}

main {
    flex : 1;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    text-align: center;
    border: 2px solid whitesmoke;
    padding: 1rem;
    position: absolute;
    left: 35%;
    right: 35%;
    margin-bottom: 2rem;
}

.pdf-container {
    width: 100%;
    height: 600px;
    border: 2px solid whitesmoke;
    overflow: hidden;
}


body.light-mode .content-section.active{
    border: 1px solid black;
}

#Text {
    text-align: center;
    margin-top: 1rem;
}

button {

}

.Game {

}

.Card {

}

.MainGame {
    
}

#Buttons {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100vh; /* Full viewport height to center vertically */
    flex-direction: column; 
}

#firstbutton {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    background-color: #444;
    color: whitesmoke;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#Currency {
    font-family: 'Helvetica Neue', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #444;
    border-radius: 4.5px;
}

/*Adding animation for when currency amount increases*/
#currency-amount {
    transition: color 0.3s ease;
    font-weight: 500;
    color: whitesmoke;
}

#currency-amount.up {
    color: green;
    animation: pulse 0.5s;
}

#currency-amount.down {
    color: red;
    animation: shake 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1);}
    50% {transform: scale(1.2);}
    100% {transform: scale(1);}
}

@keyframes shake {
    0%, 100% {transform: translateX(0);}
    25% {transform: translateX(-5px)}
    75% {transform: translateX(5px);}
}

#currency-name {
    font-size: 0.8em;
    color: whitesmoke;
    margin-left: 2px;
}

footer {
    background-color: #333333;
    color: whitesmoke;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    height: 3rem; /* Set a normal height for the footer */
}

body.light-mode footer{
    background-color: aliceblue;
    color: black;
}
